laravel RuntimeException Session store not set on request.

117

laravel RuntimeException Session store not set on request. -

/*
If adding your routes inside the web middleware doesn't work for any reason then try adding this to $middleware into Kernel.php
*/
# NOTE API route has no session by default. May be you can add this middleware in 'api' $middlewareGroups
protected $middleware = [
        //...
        \Illuminate\Session\Middleware\StartSession::class,
        \Illuminate\View\Middleware\ShareErrorsFromSession::class,
];

Comments

Submit
0 Comments